package com.zm.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;
@TableName("`order`") //注意保留字问题
@Component
@Data
public class Order extends Model<Order> implements Serializable {
    @TableId(type = IdType.AUTO,value = "id")
    private Long id;
    private Long userId;
    private Long productId;
    private String orderNo;
    private String orderName;
    private Date addTime;
    private Date updateTime;
    private Integer status;
}
